import Vue from 'vue'
import Router from 'vue-router'
import home from '../pages/home'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      name: 'home',
      path: '/',
      component: home
    },
    {
      name: 'student-add',
      path: '/pages/student-add',
      component: ()=>import('../components/Studentadd.vue')
    },
    {
      name: 'student-query',
      path: '/pages/student-query',
      component: ()=>import('../components/Studentquery.vue')
    },
    {
      name: 'student-score',
      path: '/pages/student-score',
      component: ()=>import('../components/Studentscore.vue')
    },
    {
      name: 'student-sum',
      path: '/pages/student-sum',
      component: ()=>import('../components/Studentsum.vue')
    }
  ]
})
